package com.hy.dao;

import com.hy.bean.ReceiveApply;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface ReceiveApplyDao {

    // 添加
    Boolean insert(ReceiveApply receiveApply) throws Exception;
    List<Map<String, Object>> select(Connection conn, String deptName, String username) throws Exception;
    List<Map<String, Object>> select(Connection conn, String deptName) throws SQLException;
    List<Map<String, Object>> select(Connection conn, String username, int i) throws SQLException;
    List<Map<String, Object>> select(Connection conn) throws SQLException;


    Map<String, Object> selectNew() throws Exception;

    List<Map<String, Object>> selectApplyDetailByApplyId(Integer id) throws Exception;

    Boolean deleteById(Integer id) throws Exception;

    Boolean update(ReceiveApply receiveApply) throws Exception;

    Boolean updateDjstatus(Integer id) throws Exception;
}
